@extends('admin.c_r_common')
@section('content')
<title>意见反馈</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 评论管理 <span class="c-gray en">&gt;</span> 意见反馈 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	
	<div class="cl pd-5 bg-1 bk-gray mt-20"> </div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-hover table-bg table-sort">
			<thead>
				<tr class="text-c">
					<th width="60">ID</th>
					<th width="60">用户名</th>
					<th>留言内容</th>
					<th width="100">操作</th>
				</tr>
			</thead>
			<tbody>
			@foreach($reqs as $r)
				<tr class="text-c">
					<td>{{$r->id}}</td>
					<td>{{$r->username}}</td>
					<td class="text-l"><div class="c-999 f-12">
							<u style="cursor:pointer" class="text-primary" onclick="member_show('回复内容','/admin/user/{{$r->id}}','10001','360','400')">{{$r->username}}</u> <time title="{{date("Y-m-d H:i:s",$r->time)}}" datetime="{{date("Y-m-d H:i:s",$r->time)}}">{{date("Y-m-d H:i:s",$r->time)}}</time> <span class="ml-20">{{$r->phone}}</span> <span class="ml-20">{{$r->email}}</span></div>
							
						<div>{{$r->content}}
						<a href="javascript:;"
						onclick="reply_show('{{$r->username}}',<?php
						if($r->status){
							echo "'/admin/req/".$r->id."'";
						}else{
							echo "'/admin/req/".$r->id.'/edit'."'";
						}
						?>,'{{$r->id}}','360','400')" class="c-999 f-12" ><br>
						<?php
						if($r->status){
							echo "已回复,查看";
						}else{
							echo "未回复,回复";
						}

						?></a></div></td>
					<td class="td-manage"></a> <a title="删除" href="javascript:;" del="{{url('/admin/reqdel')}}" onclick="member_del(this,'{{$r->id}}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
				</tr>
			@endforeach
			</tbody>
		</table>
	</div>
</div>
@endsection
